#include <iostream>
#include <fstream>
#include "database.h"
#include "messagerouter.h"
#include "auth.h"
#include "response.h"
#include "service.h"

Database db;

int main() {
    db.createDatabase();
    
    ThreadPool pool;
    pool.start(4);
    pool.submitTask(std::make_shared<MessageRouter>());
    pool.submitTask(std::make_shared<Auth>());
    pool.submitTask(std::make_shared<Response>());
    pool.submitTask(std::make_shared<Service>());
    getchar();
    return 0;
}